<?

session_start();

include_once("../../Misc.php");
include_once("../../classCol/UID.php");
include_once("../../classCol/classOracleDb.php");
require("../models/fetchers.php");

$COracle = new oracleDb;
$COracle->init($_SESSION["ORCL"],
               $_SESSION["OPASS"],
               $_SESSION["SID"],
               _NO_COMMENT);

$srcDbModel = "MST_MODEL";

if($COracle->connect()){

  fetchPropModel($COracle,
                 $srcDbModel,
                 $_POST["mdlName"],
                 $modelId,
                 $modelUnit);

  echo  $modelId ."~". $modelUnit;

  $COracle->dc();
}else{

  return "****";
}
?>